import { defineConfig } from 'vitepress'

export default defineConfig({
  title: 'Vue Business Hooks',
  description: 'Vue Business Hooks 文档',
  base: '/',
  themeConfig: {
    nav: [
      { text: '首页', link: '/' },
      { text: '指南', link: '/guide/' },
      { text: 'Hooks', link: '/hooks/' }
    ],
    sidebar: {
      '/guide/': [
        {
          text: '指南',
          items: [
            { text: '介绍', link: '/guide/' },
            { text: '快速开始', link: '/guide/getting-started' }
          ]
        }
      ],
      '/hooks/': [
        {
          text: 'Hooks',
          items: [
            { text: 'useDebounce', link: '/hooks/useDebounce' },
            { text: 'useThrottle', link: '/hooks/useThrottle' },
            { text: 'useDefer', link: '/hooks/useDefer' },
            { text: 'useCurrentId', link: '/hooks/useCurrentId' },
            { text: 'useBusiness', link: '/hooks/useBusiness' },
            { text: 'useState', link: '/hooks/useState' },
            { text: 'useLoading', link: '/hooks/useLoading' }
          ]
        }
      ]
    },
    socialLinks: [
      { icon: 'github', link: 'https://github.com/yourusername' }
    ]
  }
}) 